Skip to content

GPU min/max support - #26

Merged
ianmcorvidae merged 7 commits into
cyverse-de:mainfrom
ianmcorvidae:gpus
Oct 29, 2025
Merged

GPU min/max support#26
ianmcorvidae merged 7 commits into
cyverse-de:mainfrom
ianmcorvidae:gpus

Conversation

@ianmcorvidae

Copy link
Copy Markdown
Member

I also added copilot instructions, since I've been using those. Hopefully that's fine.

The GPURequest function and its parallels like CPURequest and MemoryRequest aren't used now, I think, because they were for the old condor setup. But I figured I'd still build in the support there until we decide to remove it.

@ianmcorvidae
ianmcorvidae requested review from Copilot and slr71 and removed request for Copilot October 28, 2025 18:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds GPU resource request support to the model library by introducing GPU fields and a GPURequest() helper method, and bumps the module version from v8 to v9.

  • Adds MaxGPUs and MinGPUs fields to the Container struct with appropriate JSON tags
  • Implements GPURequest() method following the same pattern as existing resource request methods
  • Comprehensive test coverage for the new GPU request functionality

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
container.go Adds MaxGPUs and MinGPUs fields to Container struct for GPU resource specification
jobs.go Implements GPURequest() method to calculate highest minimum GPU count and updates import to v9
jobs_test.go Adds TestGPURequest() with comprehensive test cases for default, single, and multiple GPU requirements
go.mod Bumps module version from v8 to v9 for major version release
.github/copilot-instructions.md New project documentation file describing repository structure and development workflows

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/copilot-instructions.md Outdated
Comment thread .github/copilot-instructions.md Outdated
Comment thread jobs_test.go Outdated
ianmcorvidae and others added 3 commits October 28, 2025 11:59
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

@slr71 slr71 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! :shipit:

- Fixes should be minimal and avoid changing public APIs unless intended. Re-run `go test ./...` after fixes.

## Integration points & expectations
- iRODS: the io helpers generate porklock-style arguments and expect a mounted `/configs/irods-config` inside runtime containers.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆

@psarando psarando left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@ianmcorvidae

Copy link
Copy Markdown
Member Author

Thanks for the reviews!

@ianmcorvidae
ianmcorvidae merged commit 251c7ff into cyverse-de:main Oct 29, 2025
3 checks passed
@ianmcorvidae
ianmcorvidae deleted the gpus branch October 29, 2025 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants